package cn.springcloud.book.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by wudl on 2018/12/6.
 */
@FeignClient(name = "ch16-3-service-b")
public interface SkyFeignService {
    /**
     * 调用service-b
     * @param serviceName
     * @return
     */
    @RequestMapping(value = "/getSendInfo",method = RequestMethod.POST)
    String getSendInfo(@RequestParam("serviceName") String serviceName);
}
